//
//  CYDataHelper.m
//  Edu_iOS
//
//  Created by yanyan on 2017/9/9.
//  Copyright © 2017年 yanyan. All rights reserved.
//

#import "CYDataHelper.h"

@implementation CYDataHelper
+ (BOOL)isNull:(id)sender
{
    if (!sender) {
        return YES;
    }
    if ([sender isKindOfClass:[NSNull class]]){
        return YES;
    }
    if ([sender isKindOfClass:[NSString class]]) {
        if (((NSString *)sender).length <= 0) {
            return YES;
        }
//        if ([sender isEqualToString:@"null"] || [sender isEqualToString:@"(null)"]) {
//            return YES;
//        }
        
    }
    if ([sender isKindOfClass:[NSArray class]]) {
        if (((NSArray *)sender).count <= 0) {
            return YES;
        }
    }
    return NO;
}
@end
